<template>
  <div>
    <h2>我是首页</h2>
  </div>
</template>

<script>
export default {
  name: "Home",
  created() {
    console.log("created");
  },
  destroyed() {
    console.log("destroyed");
  },
  activated() {
    console.log("activated");
    console.log(this.$parent);
    this.isActive=true
  },
  deactivated() {
    console.log("deactivated");
    this.isActive=false
  }
}
</script>

<style scoped>

</style>
